<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
	<meta name="description" content="赢和金融核心业务系统">
    <title>[[${config.systemTitle}]]</title>
    <link rel="shortcut icon" th:href="@{'config-resource/yhfin-resource/'+${config.faviconIcoPath}}" type="image/x-icon">
    <link rel="stylesheet" th:href="@{css/bootstrap.min.css?v=3.3.6}" type="text/css"/>
	<link rel="stylesheet" th:href="@{css/font-awesome.min.css?v=4.4.0}" type="text/css"/>
	<link rel="stylesheet" th:href="@{css/animate.css}" type="text/css"/>
	<link rel="stylesheet" th:href="@{css/style.css?v=4.1.0}" type="text/css"/>
</head>

<body class="fixed-sidebar full-height-layout gray-bg skin-4" style="overflow:hidden" >
	<!-- 修改密码弹出框 -->
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document" style="width: 500px;height: 400px">
            <div style="margin-top: 60px;" class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">修改密码</h4>
                </div>
                <div class="modal-body">

                    <div class="form-group">
                        <label for="orginpassword">原密码</label>
                        <div  class="form-inline">
                            <input type="password" style="width: 90%;" name="orginpassword" class="form-control" id="orginpassword" placeholder="请输入原密码">
                            <i class="fa fa-eye" aria-hidden="false"></i>
                            <i class="fa fa-eye-slash" aria-hidden="true"></i>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="newpassword">新密码</label>
                        <div  class="form-inline">
                            <input type="password" name="newpassword"  style="width: 90%;" class="form-control" id="newpassword" placeholder="请输入新密码">
                            <i class="fa fa-eye" aria-hidden="false"></i>
                            <i class="fa fa-eye-slash" aria-hidden="true"></i>
                        </div>
                        <span id="passwordMsg">长度为6-18位，至少1个大写字母，1个小写字母，1个数字和1个特殊字符</span>
                        <span style="color:red;display:none" id="passwordErr">密码格式错误(长度为6-18位，至少1个大写字母，1个小写字母，1个数字和1个特殊字符)</span>
                    </div>
                    <div class="form-group">
                        <label for="confirmpassword">确认新密码</label>
                        <div   class="form-inline">
                            <input type="password"  style="width: 90%;"   name="confirmpassword" class="form-control" id="confirmpassword" placeholder="请再次输入新密码">
                            <i class="fa fa-eye" aria-hidden="false"></i>
                            <i class="fa fa-eye-slash" aria-hidden="true"></i>
                        </div>
                        <span style="color:red;display:none" id="passwordDiff">密码不一致</span>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>
                    <button type="button" id="changePwdSubmit" class="btn btn-primary" ><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>保存</button>
                </div>
            </div>
        </div>
    </div>
	<!-- 导航栏 -->
	<!-- <div class="row border-bottom">
		<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
              <div class="navbar-header">
              	<div class="nav-logo"></div>
              	<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#">
              		<i class="fa fa-bars"></i> 
              	</a>
              </div>
              <ul class="nav navbar-top-links navbar-right">
              	<li class="dropdown hidden-xs">
					<a href="javascript:void(0)"><i class="fa fa fa-user"></i> [[${user.realName}]]</a>
                </li>
              	<li class="dropdown hidden-xs" style="margin:0 -10px 0 -10px">
                  <a class="right-sidebar-toggle" aria-expanded="false">
                      <i class="fa fa-tasks"></i> 主题
                  </a>
              	</li>
              	<li class="hidden-xs">
					<a href="javascript:void(0)" id="logout" class="J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
				</li>
              </ul>
          </nav>
      </div> -->
    <div id="wrapper" >
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div id="nav-logo" class="nav-logo-set">
            	<img class="logo-img" src="?" id = "logoImg"/>
            		
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <!-- <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" src="img/profile_small.jpg" /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold"> <span th:text="${user.name}"></span></strong></span>
                                <span class="text-muted text-xs block">超级管理员<b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a class="J_menuItem" href="form_avatar.html">修改头像</a>
                                </li>
                                <li><a class="J_menuItem" href="profile.html">个人资料</a>
                                </li>
                                <li class="divider"></li>
                                <li><a href="login.html">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">YH
                        </div>
                    </li> -->
                    
                     <!-- <li id = 'qq'>
                        <a href="#">
                            <i class="fa fa-home"></i>
                            <span class="nav-label">主页</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="http://www.yhfin.com" data-index="0">主页示例一</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="http://localhost:4200/index.html#/messageConfig">主页示例二</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="http://www.huimai365.com">主页示例三</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="http://www.baidu.com">主页示例四</a>
                            </li>
                        </ul>
                    </li> -->
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
        <div>
            <div style="width:35px;height:30px;float:left;">
                <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " style="margin:0 0 0 -14px;padding:10px 18px" href="#">
                    <i class="fa fa-chevron-left" id="shrink"></i> 
                </a>
                </div>
            <div class="row content-tabs" style="margin:0 95px 0 35px;">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="/index">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div id="user-admin-button" style="width:105px;top:0;right:20px;position:absolute;">
	            <ul style="list-style-type: none;width:105px;background-color: #fafafa" class="nav navbar-right" id="perul">
	                <li class="dropdown hidden-xs">
	                    <a href="javascript:per()" style="padding:12px 0px 12px 22px;" th:title="${user.realName}">
	                       <i class="fa fa fa-user"></i> <span id="username">[[${user.realName}]]</span>
	                    </a>
	                </li>
	                <li class="dropdown hidden-xs" style="display: none">
                      <a href="javascript:void(0)" id="changePwd" class="J_tabExit" style="padding:12px 0px 12px 22px;">
                         <i class="fa fa-key"> </i> 修改密码
                      </a>
                    </li>
	                <li class="dropdown hidden-xs" style="display: none">
	                  <a class="right-sidebar-toggle" style="padding:12px 0px 12px 22px;">
	                      <i class="fa fa-tasks"></i> 主题
	                  </a>
	                </li>
	                <li class="hidden-xs" style="display: none">
	                    <a href="javascript:void(0)" id="logout" class="J_tabExit" style="padding:12px 0px 12px 22px;">
	                       <i class="fa fa fa-sign-out"> </i> 退出
	                    </a>
	                </li>
	              </ul>
            </div>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe id="j_iframe" class="J_iframe" name="iframe0" width="100%" height="100%" src="" frameborder="0" data-id="/index" seamless></iframe>
            </div>
            <div class="footer">
                <div class="pull-right"  th:if="${config.indexCmpNameSwitch}"> 
                	Copyright<a th:href="@{${config.indexCmpNameLink}}" target="_blank">&nbsp;[[${config.indexCmpName}]]</a>&nbsp;All Rights Reserved
                </div>
            </div>
        </div>
        <!--右侧部分结束-->
        <!--右侧边栏开始-->
        <div id="right-sidebar">
            <div class="sidebar-container">
               <!--  <ul class="nav nav-tabs navs-3">
                    <li class="active">
                        <a data-toggle="tab" href="#tab-1">
                            <i class="fa fa-gear"></i> 主题
                        </a>
                    </li>
                </ul> -->
                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                    	<div class="sidebar-title text-center" style="padding-left:22px;">
							<button class="btn btn-danger m-r-sm s-skin-0 " type="button"></button>
							<button class="btn btn-success m-r-sm s-skin-1" type="button"></button>
                        </div>
                    	
                        <!-- <div class="skin-setttings">
                            <div class="title">皮肤选择</div>
                            <div class="setings-item default-skin nb">
                                <span class="skin-name ">
			                         <a href="#" class="s-skin-0">
			                            	 默认皮肤
			                         </a>
                    			</span>
                            </div>
                            <div class="setings-item blue-skin nb">
                                <span class="skin-name ">
	                        		<a href="#" class="s-skin-1">
	                            		蓝色主题
	                       		 	</a>
                    			</span>
                            </div>
                        </div> -->
                    </div>
                </div>
            </div>
        </div>
        <!--右侧边栏结束-->
    </div>
<script th:inline="javascript">  
    var username = [[${user.name}]]; 
    var logoAdres="config-resource/yhfin-resource/"+[[${config.mainLogoPath}]];
    document.getElementById('logoImg').src = logoAdres;
    var maxTime = 86400; // seconds
	var time = maxTime;
 
	document.body.addEventListener("mousemove", function() {
		time = maxTime; // reset
	}, false);
 
	var intervalId = setInterval(function() {
		time--;
		if(time <= 0) {
			ShowInvalidLoginMessage();
			clearInterval(intervalId);
		}
	}, 1000)
 
	function ShowInvalidLoginMessage() {
		layer.confirm("登陆超时。请重新登录", {
			shade : false,
			btn : [ '确认' ]
		,cancel: function(index, layero){
			window.location.href = "login.html";
		  }
		}, function() {
			window.location.href = "login.html";
		}	);
	}
</script>

	<!-- 全局js -->
	<script  th:src="@{js/jquery.min.js?v=2.1.4}"></script>
	<script type="text/javascript" th:src="@{js/index/index.js}"></script> 
	<script  th:src="@{js/bootstrap.min.js?v=3.3.6}"></script>
	<script  th:src="@{js/plugins/metisMenu/jquery.metisMenu.js}"></script>
	<script  th:src="@{js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
	<script  th:src="@{js/plugins/layer/layer.min.js}"></script>
	<!--  自定义js  -->
	<script th:src="@{js/contabs.js}"></script>
	<script th:src="@{js/hplus.js?v=4.1.0}"></script>
	<!-- 第三方插件 -->
	<script th:src="@{js/plugins/pace/pace.min.js}"></script>
	<script type="text/javascript" th:src="@{js/security.js}"></script>
</body>
</html>
